Rename Worksheet
Command Prototype
Excel.SheetRename(objExcelWorkBook,sheet,strNewName,bSave)
Command Description
Rename sheet
Parameter Description
- Required Parameter
- objExcelWorkBook--Excel workbook object (workbook opened with "Open Excel" command (Excel.OpenExcel))
- sheet--The worksheet to be renamed; If a string is used, it refers to the name of the specified sheet; if a number is used, it refers to the index of the specified sheet (starting from 0)
- strNewName--Name of the new created worksheet
- bSave--Save immediately after an operation